<!DOCTYPE html>
<html lang="ru">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta name="content-language" content="ru">
    <title>{% block document_title %}HOME{% endblock %}</title>
    <meta name="description" content="">
    <meta name="author" content="vcow">
    <link rel="icon" href="static/favicon.gif"/>
    <link rel="shortcut icon" href="static/favicon.gif"/>
    {% block styles %}<link rel="stylesheet" href="static/face.css" type="text/css"/>{% endblock %}
    {% block scripts %}{% endblock %}
  </head>
  <body>
  	{% if has_private_messages %}
  	{% block message_block %}
	  	<div id="message_ui_back"></div>
	  	<div id="message_ui">
	  		<div>
	  			<div>
	  				<div>
	  					<div>
	  						<div>
						  		<p><a href="message">У вас <b>{{has_private_messages}}</b> непрочитанных сообщений!</a></p>
	  						</div>
	  					</div>
	  				</div>
	  			</div>
	  		</div>
	  	</div>
	{% endblock %}
  	{% endif %}
  	<header>
		<nav>
	    	<ul>
	    		{% for menu_item in main_menu %}
	    			<li><a href="{{ menu_item.link }}">{{ menu_item.label }}</a></li>
	    		{% endfor %}
	    		<li>
	    			{% if login_form %}
		    			<form action="" method="post">
		    				<ul>
		    					{{ login_form.as_ul }}
		    					<li><input type="submit" value="Вход" class="login_submit"/></li>
		    				</ul>
		    			</form>
		    		{% else %}
		    			<form action="logout" method="post">
		    				<ul>
		    					<li><input type="submit" value="Выход" class="login_submit"/></li>
		    				</ul>
		    			</form>
		    		{% endif %}
	    		</li>
	    	</ul>
		</nav>
		{% if header_warning_message %}
		<div class="header_warning"><div><p>{{ header_warning_message|safe }}</p></div></div>
		{% endif %}
	  	<div id="title_bottom">
	  		<div>&nbsp;</div>
	  		{% block title_center %}<p>Заголовок заголовок</p>{% endblock %}
	  		{% block title_right %}{% endblock %}
	  	</div>
  	</header>
  	<div id="content_container">
  		<div id="body_left">{% block content_block_left %}&nbsp;{% endblock %}</div>
  		<div id="body_content">
  			{% block content_block_center %}<p>Содержимое раздела</p>{% endblock %}
  		</div>
  		{% block content_right %}{% endblock %}
  	</div>
  	<footer>
  		<div>
	  		<p>Подвал</p>
  		</div>
  	</footer>
  </body>
</html>
